<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of UpdateSlide
 *
 * @author Tan Loi
 */
class UpdateSlide extends Slide {
    
        public static function model($className = __CLASS__) {
        return parent::model($className);
    }
    /**
	 * @return array validation rules for model attributes.
	 */
	public function rules()
	{
            // NOTE: you should only define rules for those attributes that
            // will receive user inputs.
            return array(
                    array('file','file','types'=>'jpg, gif, png','allowEmpty'=>true),
                    array('title, description, position', 'required'),
                    array('position', 'numerical', 'integerOnly'=>true),
                    array('image, image_thumb, title, link', 'length', 'max'=>255),
                    // The following rule is used by search().
                    // Please remove those attributes that should not be searched.
                    array('id, title, link, description, position', 'safe', 'on'=>'search'),
            );
	}
}

?>
